package com.hsc.www.selfLock.store;


import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class MapCache implements Cache {
    private Map map=new ConcurrentHashMap();


    @Override
    public <T> T get(Object key, Class<T> type) {
        return  (T)map.get(key);
    }

    @Override
    public void put(Object key, Object value) {
        map.put(key,value);
    }

    @Override
    public void remove(Object key) {
        map.remove(key);
    }
}
